import { Component, inject, isDevMode } from '@angular/core';
import { RouterLink, RouterOutlet } from '@angular/router';
import { WuJieService } from 'wang-wujie';

@Component({
  selector: 'app-root',
  imports: [RouterOutlet, RouterLink],
  templateUrl: './app.component.html',
  styles: ``,
})
export class AppComponent {
  wuJie = inject(WuJieService);

  ngOnInit() {
    this.wuJie.initialWuJiePreload([
      {name: 'shopApp', url: isDevMode() ? '//localhost:42002/' : `/child-shop/`, sync: true, preload: true},
    ]);
  }

}
